home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / mult_edi.arc / PASCAL.HLP < prev    next >
Text File  |  1989-10-21  |  3KB  |  96 lines

  1. * LANGUAGE SUPPORT FOR PASCAL
  2. Language support for Pascal contains 3 main utilities to make coding in Pascal
  3. faster and easier:
  4.  
  5.     @PATE[Template Editing]
  6.  
  7.     @PASI[Smart Indenting]
  8.  
  9.     @PACM[Construct Matching]
  10.  
  11. In order to utilize these language support utilities, you must configure the
  12. @ME.HLP^FE[filename extension(s)] you use for Pascal for the language type ^BPASCAL^b.
  13. PATE TEMPLATE EDITING FOR PASCAL
  14. DEFAULT KEY: <AltT> or <AltF9>
  15.  
  16. Template editing is designed to reduce the about of redundant typing by
  17. expanding a single character into one or more words, on one or more lines,
  18. which normally constitute a language construct.  A typical situation is
  19. where an "IF <condition> THEN" construct, common to most high level languages,
  20. is desired.  Typing in the leading "I" character, then pressing the template
  21. key will then complete the construct, placing the cursor in the proper spot
  22. to define the conditional part of the construct.
  23.  
  24. Since pascal keywords are not case sensitive, the case of the templates will
  25. be determined by the case of the character typed in.  NOTE:  Since 'FOR' and
  26. 'FUNCTION' both start with 'F' a prompt will appear for the one to use, unless
  27. the second character is typed in.
  28.  
  29.     B   Builds a matching 'BEGIN/END' construct.
  30.     I   Builds an 'IF () THEN' construct.
  31.     W   Builds a 'WHILE () DO' construct.
  32.     F   Prompts for 'FOR-NEXT' or 'FUNCTION'.
  33.     FU  Builds a 'FUNCTION  () : ;' construct with matching 'BEGIN/END'.
  34.     FO  Builds a 'FOR  :=  TO  DO' construct.
  35.     P   Builds a 'PROCEDURE  ();' construct with matching 'BEGIN/END'.
  36.     C   Builds a 'CASE  OF' construct with matching 'END'.
  37.     R   Builds a 'REPEAT UNTIL ();' construct.
  38.  
  39.     Examples:
  40.         Original line:
  41.             I
  42.         After template:
  43.             IF () THEN
  44.  
  45.         Original line:
  46.             r
  47.         After template:
  48.             repeat
  49.  
  50.             until ();
  51. PASI SMART INDENTING FOR PASCAL
  52. Invoked by pressing <ENTER>
  53.  
  54. Most high level languages are more readable if compound constructs and
  55. iterative loops are progressively indented.  In order to automate this
  56. process, Multi-Edit provides smart indenting.  When <ENTER> is pressed, the
  57. current line is examined(sometimes lines above and below are also examined).
  58. Based upon certain conditions, a decision is made whether to indent, undent,
  59. or remain the same.
  60.  
  61. For Pascal, the following keywords are checked for on the current line:
  62.  
  63.     BEGIN
  64.     IF
  65.     WHILE
  66.     FOR
  67.     FUNCTION
  68.     PROCEDURE
  69.     REPEAT
  70.  
  71. If any of the above are found as the first word on the line, Multi-Edit will
  72. indent the new line one tab stop beyond the indent of the previous line.
  73.  
  74. If the keyword:
  75.  
  76.      END;
  77.  
  78. is found, Multi-Edit will undent one tab stop.
  79. PACM CONSTRUCT MATCHING FOR PASCAL
  80. MENU, Support, Match  or  <AltF6>  or  <AltM>
  81.  
  82. Construct matching is useful for finding the beginning or ending of a large
  83. compound construct, and also to check to see if there is a missing opening or
  84. closing to the construct.
  85.  
  86. In Pascal, placing the cursor on the following pairs of keywords and invoking
  87. match will cause the matching keyword to be searched for:
  88.     BEGIN    END
  89.  
  90.     CASE    END
  91.  
  92.     (    )
  93.  
  94. If successful, the message line will read "Match Found", and the cursor will
  95. move to the matching keyword.  If unsuccessful "Match NOT Found" will appear
  96. on the message line, and the cursor will not move.